/**
 * @Author sy
 * @Date 2022/9/13
 */
public class Expe4T5 {
    public static void main(String[] args) {
        for (int i = 2;i <= 100;i++){
            boolean  isFlag = false;
            for (int j = 2;j <= Math.sqrt(i);j++){
                if (i % j == 0){
                    isFlag = true;
                    break;
                }
            }
            if(isFlag == false){
                System.out.print(i);
                System.out.print(" ");
            }
        }

    }
}
